<template>
  <span class="ep-count" :style="{ color: color }">({{ text }}{{ count }}{{ unit }})</span>
</template>

<script>
export default {
  name: "epCount",
  props: {
    text: {
      type: String,
      default: "数据量",
    },
    count: {
      type: [Number, String],
      required: true,
    },
    unit: {
      type: String,
      default: "条",
    },
    color: {
      type: String,
      default: "#49bbeb",
    },
  },
};
</script>

<!-- Add "scoped" attribute to limit CSS to this component only -->
<style lang="less" scoped>
.ep-count {
  font-size: 16px;
}
</style>
